class LoginController < ApplicationController
  def index
  end
  def login
    if (@params[:user]!=nil) 
      @user = @params[:user];
      @name = @user["name"];
      session[:name] = @name;
    end
  end
  
  def logout
    session[:name] = nil;
  end  
end
